c ={'加法':'mysum','减法':'jian','乘法':'sheng','除法':'chu'}
print(c)
z = input('请输入算法:')
a = int(input('请输入数字:'))
b= int(input('请输入数字:'))
def mysum(a,b,*args):
    sum=0
    for i in args:
        sum = sum + i
    return sum+a+b

def jian(a,b):
    sum = 0
    return a - b

def cheng(a,b,*arg):
    g = 1
    for i in arg:
        g =g*i
        return g *a *b

def chu(a,b):
    if b==0:
        return ("无法计算")
    else:
        return a/b
def main(z):

    if z=="mysum":
        j = mysum(a,b)
        return j
    elif z=="jian":
        j = jian(a,b)
        return j

    elif  z=="cheng":
        j =cheng(a,b)
        return j

    elif z=='chu':
        j =chu(a,b)
        return j
print(main(z))

